using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

public class Red : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        #if UNITY_ANDROID && !UNITY_EDITOR
    // 这里是纯Android平台的代码
    Debug.Log("当前运行在Android设备上");
#elif UNITY_ANDROID && UNITY_EDITOR
    // 这里是编辑器模拟Android环境的代码
    Debug.Log("在Unity编辑器中模拟Android环境");
    //Debug.Log("当前不是Android环境");
#endif
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
